package com.pace.ribbon.day05.bean;import javax.validation.Valid;import javax.validation.constraints.NotNull;import javax.validation.constraints.Size;/** * @Auther: sky * @Date: 2019/3/29 23:30 * @Description: */public class Spitter {    @Valid    @NotNull    private String userName;    @Valid    @Size(min = 1, max = 10)    private int userId;    public String getUserName() {        return userName;    }    public void setUserName(String userName) {        this.userName = userName;    }    public int getUserId() {        return userId;    }    public void setUserId(int userId) {        this.userId = userId;    }}